# eric7.ViewManager.ViewManager

Module implementing the view manager base class.

### Global Attributes

None

### Classes

ViewManager | Base class inherited by all specific view manager classes.

### Functions

None

## ViewManager

Base class inherited by all specific view manager classes.

It defines the interface to be implemented by specific view manager classes and all common methods.

### Signals

astViewerStateChanged(bool)
  emitted to signal a change in the AST viewer state
bookmarkToggled(Editor)
  emitted when a bookmark is toggled
breakpointToggled(Editor)
  emitted when a breakpoint is toggled
changeCaption(str)
  emitted if a change of the caption is necessary
checkActions(Editor)
  emitted when some actions should be checked for their status
cursorChanged(Editor)
  emitted after the cursor position of the active window has changed
disViewerStateChanged(bool)
  emitted to signal a change in the DIS viewer state
editorChanged(str)
  emitted when the current editor has changed
editorChangedEd(Editor)
  emitted when the current editor has changed
editorClosed(str)
  emitted just before an editor window gets closed
editorClosedEd(Editor)
  emitted just before an editor window gets closed
editorCountChanged(count)
  emitted whenever the count of open editors changed
editorDoubleClickedEd(Editor, position, buttons)
  emitted to signal a mouse double click in an editor
editorLanguageChanged(Editor)
  emitted to signal a change of an editor's language
editorLineChanged(str,int)
  emitted to signal a change of an editor's current line (line is given one based)
editorLineChangedEd(Editor,int)
  emitted to signal a change of an editor's current line (line is given one based)
editorOpened(str)
  emitted after an editor window was opened
editorOpenedEd(Editor)
  emitted after an editor window was opened
editorRenamed(str)
  emitted after an editor was renamed
editorRenamedEd(Editor)
  emitted after an editor was renamed
editorSaved(str)
  emitted after an editor window was saved
editorSavedEd(Editor)
  emitted after an editor window was saved
editorTextChanged(Editor)
  emitted to signal a change of an editor's text
lastEditorClosed()
  emitted after the last editor window was closed
previewStateChanged(bool)
  emitted to signal a change in the preview state
syntaxerrorToggled(Editor)
  emitted when a syntax error is toggled

### Derived from

QWidget

### Class Attributes

None

### Class Methods

None

### Methods

ViewManager | Constructor
__aboutToShowBackMenu | Private slot to prepare the 'back' menu before it is shown.
__aboutToShowForwardMenu | Private slot to prepare the 'forward' menu before it is shown.
__addBookmarked | Private method to add the current file to the list of bookmarked files.
__astViewer | Private slot to handle a change of the AST Viewer selection state.
__bookmarkSelected | Private method to handle the bookmark selected signal.
__bookmarkToggled | Private slot to handle the bookmarkToggled signal.
__breakpointToggled | Private slot to handle the breakpointToggled signal.
__changeMarkersUpdated | Private slot to handle the changeMarkersUpdated signal.
__checkHistoryButtonStates | Private slot to set the enabled state of the history buttons.
__clearAllBookmarks | Private method to handle the clear all bookmarks action.
__clearAllFolds | Private method to handle the clear all folds action.
__clearAllSyntaxErrors | Private method to handle the clear all syntax errors action.
__clearAllWarnings | Private method to handle the clear all warnings action.
__clearBookmarked | Private method to clear the bookmarked files menu.
__connectEditor | Private method to establish all editor connections.
__convertEOL | Private method to handle the convert line end characters action.
__convertTabs | Private method to handle the convert tabs to spaces action.
__coverageMarkersShown | Private slot to handle the coverageMarkersShown signal.
__cursorChanged | Private slot to handle the cursorChanged signal.
__disViewer | Private slot to handle a change of the DIS Viewer selection state.
__editAutoComplete | Private method to handle the autocomplete action.
__editAutoCompleteFromAPIs | Private method to handle the autocomplete from APIs action.
__editAutoCompleteFromAll | Private method to handle the autocomplete from All action.
__editAutoCompleteFromDoc | Private method to handle the autocomplete from document action.
__editBookmarked | Private method to edit the list of bookmarked files.
__editBoxComment | Private method to handle the box comment action.
__editComment | Private method to handle the comment action.
__editCopy | Private method to handle the copy action.
__editCut | Private method to handle the cut action.
__editDelete | Private method to handle the delete action.
__editDeselectAll | Private method to handle the select all action.
__editIndent | Private method to handle the indent action.
__editInsertDocstring | Private method to insert a docstring.
__editJoin | Private method to handle the join action.
__editPaste | Private method to handle the paste action.
__editProjectPEL | Private slot to edit the project exception list.
__editProjectPWL | Private slot to edit the project word list.
__editRedo | Private method to handle the redo action.
__editRevert | Private method to handle the revert action.
__editSelectAll | Private method to handle the select all action.
__editSelectBrace | Private method to handle the select to brace action.
__editShowCallTips | Private method to handle the calltips action.
__editShowCodeInfo | Private method to handle the code info action.
__editSmartIndent | Private method to handle the smart indent action.
__editSortSelectedLines | Private slot to sort the selected lines.
__editSpellingDictionary | Private slot to edit the given spelling dictionary.
__editStreamComment | Private method to handle the stream comment action.
__editToggleComment | Private method to handle the toggle comment action.
__editUncomment | Private method to handle the uncomment action.
__editUndo | Private method to handle the undo action.
__editUnindent | Private method to handle the unindent action.
__editUserPEL | Private slot to edit the user exception list.
__editUserPWL | Private slot to edit the user word list.
__editorAutoCompletionAPIsAvailable | Private method to handle the availability of API autocompletion signal.
__editorCommand | Private method to send an editor command to the active window.
__editorConfigChanged | Private slot to handle changes of an editor's configuration.
__editorDoubleClicked | Private slot handling mouse double clicks of an editor.
__editorOpened | Private slot to handle the editorOpened signal.
__editorRenamed | Private slot to handle the editorRenamed signal.
__editorSaved | Private slot to handle the editorSaved signal.
__editorSelectionChanged | Private slot to handle changes of the current editors selection.
__enableSpellingActions | Private method to set the enabled state of the spelling actions.
__eolPixmap | Private method to get an EOL pixmap for an EOL string.
__exportMenuTriggered | Private method to handle the selection of an export format.
__findLocation | Private method to handle the Find File action.
__findNextWord | Private slot to find the next occurrence of the current word of the current editor.
__findPrevWord | Private slot to find the previous occurrence of the current word of the current editor.
__goto | Private method to handle the goto action.
__gotoBrace | Private method to handle the goto brace action.
__gotoLastEditPosition | Private method to move the cursor to the last edit position.
__gotoNextMethodClass | Private slot to go to the next Python/Ruby method or class definition.
__gotoPreviousMethodClass | Private slot to go to the previous Python/Ruby method or class definition.
__gotoSyntaxError | Private method to handle the goto syntax error action.
__historyMenuTriggered | Private slot handling the selection of an action of the 'back' menu.
__initBookmarkActions | Private method defining the user interface actions for the bookmarks commands.
__initContextMenuExporters | Private method used to setup the Exporters sub menu.
__initEditActions | Private method defining the user interface actions for the edit commands.
__initFileActions | Private method defining the user interface actions for file handling.
__initMacroActions | Private method defining the user interface actions for the macro commands.
__initSearchActions | Private method defining the user interface actions for the search commands.
__initSpellingActions | Private method to initialize the spell checking actions.
__initViewActions | Private method defining the user interface actions for the view commands.
__isEditorInfoSupportedEd | Private method to check, if an editor is supported by the documentation viewer.
__lastEditPositionAvailable | Private slot to handle the lastEditPositionAvailable signal of an editor.
__lastEditorClosed | Private slot to handle the lastEditorClosed signal.
__loadRecent | Private method to load the recently opened filenames.
__macroDelete | Private method to handle the delete macro action.
__macroLoad | Private method to handle the load macro action.
__macroRun | Private method to handle the run macro action.
__macroSave | Private method to handle the save macro action.
__macroStartRecording | Private method to handle the start macro recording action.
__macroStopRecording | Private method to handle the stop macro recording action.
__newDocumentSplitView | Private method to open a new view of the current editor in a new split.
__newDocumentView | Private method to open a new view of the current editor.
__newLineBelow | Private method to insert a new line below the current one even if cursor is not at the end of the line.
__nextBookmark | Private method to handle the next bookmark action.
__nextChange | Private method to handle the next change action.
__nextTask | Private method to handle the next task action.
__nextUncovered | Private method to handle the next uncovered action.
__nextWarning | Private method to handle the next warning action.
__openFiles | Private slot to open some files.
__openRemoteFiles | Private slot to open some files.
__openSourceFile | Private method to open a file from the list of recently opened files.
__previewEditor | Private slot to handle a change of the preview selection state.
__previousBookmark | Private method to handle the previous bookmark action.
__previousChange | Private method to handle the previous change action.
__previousTask | Private method to handle the previous task action.
__previousUncovered | Private method to handle the previous uncovered action.
__previousWarning | Private method to handle the previous warning action.
__reloadCurrentEditor | Private slot to reload the contents of the current editor.
__replaceFiles | Private method to handle the replace in files action.
__replaceOpenFiles | Private method to handle the replace in open files action.
__saveRecent | Private method to save the list of recently opened filenames.
__searchClearMarkers | Private method to clear the search markers of the active window.
__searchFiles | Private method to handle the search in files action.
__searchNext | Private slot to handle the search next action.
__searchOpenFiles | Private method to handle the search in open files action.
__searchPrev | Private slot to handle the search previous action.
__setAutoSpellChecking | Private slot to set the automatic spell checking of all editors.
__setSbFile | Private method to set the file info in the status bar.
__shortenEmptyLines | Private method to handle the shorten empty lines action.
__showBookmarkMenu | Private method to set up the bookmark menu.
__showBookmarkedMenu | Private method to set up bookmarked files menu.
__showBookmarksMenu | Private method to handle the show bookmarks menu signal.
__showEditSpellingMenu | Private method to set up the edit dictionaries menu.
__showEncodingsMenu | Private slot to show the Encodings menu of the current editor.
__showEolMenu | Private slot to show the EOL menu of the current editor.
__showFileMenu | Private method to set up the file menu.
__showLanguagesMenu | Private slot to show the Languages menu of the current editor.
__showRecentMenu | Private method to set up recent files menu.
__spellCheck | Private slot to perform a spell check of the current editor.
__splitOrientation | Private method to handle the split orientation action.
__splitView | Private method to handle the split view action.
__taskMarkersUpdated | Private slot to handle the taskMarkersUpdated signal.
__toggleAll | Private method to handle the toggle all folds action.
__toggleAllChildren | Private method to handle the toggle all folds (including children) action.
__toggleBookmark | Private method to handle the toggle bookmark action.
__toggleCurrent | Private method to handle the toggle current fold action.
__unhighlight | Private slot to switch of all highlights.
__watchedFileChanged | Private slot handling modification, renaming or deletion of a watched file.
__watcherError | Private slot to handle an error of the file system watcher.
__zoom | Private method to handle the zoom action.
__zoomIn | Private method to handle the zoom in action.
__zoomOut | Private method to handle the zoom out action.
__zoomReset | Private method to reset the zoom factor.
__zoomTo | Private slot to zoom to a given value.
_addView | Protected method to add a view (i.e.
_checkActions | Protected slot to check some actions for their enable/disable status and set the statusbar info.
_getOpenFileFilter | Protected method to return the active filename filter for a file open dialog.
_getOpenStartDir | Protected method to return the starting directory for a file open dialog.
_initWindowActions | Protected method to define the user interface actions for window handling.
_modificationStatusChanged | Protected slot to handle the modificationStatusChanged signal.
_removeAllViews | Protected method to remove all views (i.e.
_removeView | Protected method to remove a view (i.e.
_showView | Protected method to show a view (i.e.
_syntaxErrorToggled | Protected slot to handle the syntaxerrorToggled signal.
activeWindow | Public method to return the active (i.e.
addSplit | Public method used to split the current view.
addToExtrasMenu | Public method to add some actions to the Extras menu.
addToRecentList | Public slot to add a filename to the list of recently opened files.
addWatchedFilePath | Public method to add a file to the list of monitored files.
appFocusChanged | Public method to handle the global change of focus.
canCascade | Public method to signal if cascading of managed windows is available.
canSplit | Public method to signal if splitting of the view is available.
canTile | Public method to signal if tiling of managed windows is available.
cascade | Public method to cascade the managed windows.
checkAllDirty | Public method to check the dirty status of all editors.
checkDirty | Public method to check the dirty status and open a message window.
checkFileDirty | Public method to check the dirty status of an editor given its file name and open a message window.
clearRecent | Public method to clear the recent files menu.
cloneEditor | Public method to clone an editor displaying the given document.
closeAllWindows | Public method to close all editor windows.
closeCurrentWindow | Public method to close the current window.
closeDeviceEditors | Public slot to close all editors related to a MicroPython device.
closeEditor | Public method to close an editor window.
closeEditorWindow | Public method to close an arbitrary source editor.
closeRemoteEditors | Public slot to close all editors related to a connected eric-ide server.
closeViewManager | Public method to shutdown the viewmanager.
closeWindow | Public method to close an arbitrary source editor.
editorsCheckFocusInEnabled | Public method returning the flag indicating editors should perform focus in checks.
enableEditorsCheckFocusIn | Public method to set a flag enabling the editors to perform focus in checks.
eventFilter | Public method called to filter an event.
exit | Public method to handle the debugged program terminating.
getAPIsManager | Public method to get a reference to the APIs manager.
getActions | Public method to get a list of all actions.
getActiveName | Public method to retrieve the filename of the active window.
getEditor | Public method to return the editor displaying the given file.
getMostRecent | Public method to get the most recently opened file.
getNumber | Public method to get a number from the active window.
getOpenEditor | Public method to return the editor displaying the given file.
getOpenEditorCount | Public method to return the count of editors displaying the given file.
getOpenEditorList | Public method to return a list of all editors displaying the given file.
getOpenEditors | Public method to get references to all open editors.
getOpenEditorsCount | Public method to get the number of open editors.
getOpenEditorsForSession | Public method to get a lists of all open editors.
getOpenFilenames | Public method returning a list of the filenames of all editors.
getSRHistory | Public method to get the search or replace history list.
getSplitOrientation | Public method to get the orientation of the split view.
handleResetUI | Public slot to handle the resetUI signal.
hasDirtyEditor | Public method to ask, if any of the open editors contains unsaved changes.
initActions | Public method defining the user interface actions.
initBookmarkMenu | Public method to create the Bookmark menu.
initBookmarkToolbar | Public method to create the Bookmark toolbar.
initEditMenu | Public method to create the Edit menu.
initEditToolbar | Public method to create the Edit toolbar.
initFileMenu | Public method to create the File menu.
initFileToolbar | Public method to create the File toolbar.
initMacroMenu | Public method to create the Macro menu.
initSearchMenu | Public method to create the Search menu.
initSearchToolbar | Public method to create the Search toolbar.
initSpellingToolbar | Public method to create the Spelling toolbar.
initViewMenu | Public method to create the View menu.
initViewToolbar | Public method to create the View toolbar.
insertNumber | Public slot to insert a number text into the active window.
insertSymbol | Public slot to insert a symbol text into the active window.
isEditorInfoSupported | Public method to check, if a language is supported by the documentation viewer.
mainWidget | Public method to return a reference to the main Widget of a specific view manager subclass.
mousePressEvent | Protected method called by a mouse press event.
newEditor | Public method to generate a new empty editor.
newEditorView | Public method to create a new editor displaying the given document.
newEditorWithText | Public method to generate a new editor with a given text and associated file name.
nextSplit | Public slot used to move to the next split.
openFiles | Public slot to open some files.
openSourceFile | Public method to display a file in an editor.
openSourceFileLinePos | Public slot to display a file in an editor at a given line and position.
preferencesChanged | Public slot to handle the preferencesChanged signal.
prevSplit | Public slot used to move to the previous split.
printCurrentEditor | Public slot to print the contents of the current editor.
printEditor | Public slot to print an editor.
printPreviewCurrentEditor | Public slot to show a print preview of the current editor.
printPreviewEditor | Public slot to show a print preview of an editor.
projectClosed | Public slot to handle the projectClosed signal.
projectFileRenamed | Public slot to handle the projectFileRenamed signal.
projectLexerAssociationsChanged | Public slot to handle changes of the project lexer associations.
projectOpened | Public slot to handle the projectOpened signal.
remoteConnectionChanged | Public slot handling a change of the connection state to an eric-ide server.
removeSplit | Public method used to remove the current split view or a split view by index.
removeWatchedFilePath | Public method to remove a file from the list of monitored files.
saveAllEditors | Public slot to save the contents of all editors.
saveAsCurrentEditor | Public slot to save the contents of the current editor to a new file.
saveAsEditorEd | Public slot to save the contents of an editor to a new file.
saveAsRemoteCurrentEditor | Public slot to save the contents of the current editor to a new file on a connected eric-ide server.
saveAsRemoteEditorEd | Public slot to save the contents of an editor to a new file on a connected eric-ide server.
saveCopyCurrentEditor | Public slot to save the contents of the current editor to a new copy of the file.
saveCopyEditorEd | Public slot to save the contents of an editor to a new copy of the file.
saveCurrentEditor | Public slot to save the contents of the current editor.
saveEditor | Public method to save a named editor file.
saveEditorEd | Public slot to save the contents of an editor.
saveEditorsList | Public slot to save a list of editors.
searchReplaceWidget | Public method to get a reference to the search widget.
setEditorName | Public method to change the displayed name of the editor.
setFileLine | Public method to update the user interface when the current program or line changes.
setReferences | Public method to set some references needed later on.
setSbInfo | Public method to transfer statusbar info from the user interface to viewmanager.
setSplitCount | Public method to set the number of split views.
setSplitOrientation | Public method used to set the orientation of the split view.
showDebugSource | Public method to open the given file and highlight the given line in it.
showEditorInfo | Public method to show some information for a given editor.
showReplaceWidget | Public method to show the replace widget.
showSearchWidget | Public method to show the search widget.
showWindowMenu | Public method to set up the viewmanager part of the Window menu.
splitCount | Public method to get the number of split views.
textForFind | Public method to determine the selection or the current word for the next find operation.
tile | Public method to tile the managed windows.
unhighlight | Public method to switch off all highlights or the highlight of the current editor.
zoomValueChanged | Public slot to handle changes of the zoom value.

### Static Methods

None

#### ViewManager (Constructor)

ViewManager()

Constructor

#### ViewManager.__aboutToShowBackMenu

__aboutToShowBackMenu()

Private slot to prepare the 'back' menu before it is shown.

#### ViewManager.__aboutToShowForwardMenu

__aboutToShowForwardMenu()

Private slot to prepare the 'forward' menu before it is shown.

#### ViewManager.__addBookmarked

__addBookmarked()

Private method to add the current file to the list of bookmarked files.

#### ViewManager.__astViewer

__astViewer(checked)

Private slot to handle a change of the AST Viewer selection state.

checked (bool)
  state of the action

#### ViewManager.__bookmarkSelected

__bookmarkSelected(act)

Private method to handle the bookmark selected signal.

act (QAction)
  reference to the action that triggered

#### ViewManager.__bookmarkToggled

__bookmarkToggled(editor)

Private slot to handle the bookmarkToggled signal.

It checks some bookmark actions and reemits the signal.

editor (Editor)
  editor that sent the signal

#### ViewManager.__breakpointToggled

__breakpointToggled(editor)

Private slot to handle the breakpointToggled signal.

It simply reemits the signal.

editor (Editor)
  editor that sent the signal

#### ViewManager.__changeMarkersUpdated

__changeMarkersUpdated(editor)

Private slot to handle the changeMarkersUpdated signal.

editor (Editor)
  editor that sent the signal

#### ViewManager.__checkHistoryButtonStates

__checkHistoryButtonStates()

Private slot to set the enabled state of the history buttons.

#### ViewManager.__clearAllBookmarks

__clearAllBookmarks()

Private method to handle the clear all bookmarks action.

#### ViewManager.__clearAllFolds

__clearAllFolds()

Private method to handle the clear all folds action.

#### ViewManager.__clearAllSyntaxErrors

__clearAllSyntaxErrors()

Private method to handle the clear all syntax errors action.

#### ViewManager.__clearAllWarnings

__clearAllWarnings()

Private method to handle the clear all warnings action.

#### ViewManager.__clearBookmarked

__clearBookmarked()

Private method to clear the bookmarked files menu.

#### ViewManager.__connectEditor

__connectEditor(editor)

Private method to establish all editor connections.

editor (Editor)
  reference to the editor object to be connected

#### ViewManager.__convertEOL

__convertEOL()

Private method to handle the convert line end characters action.

#### ViewManager.__convertTabs

__convertTabs()

Private method to handle the convert tabs to spaces action.

#### ViewManager.__coverageMarkersShown

__coverageMarkersShown(shown)

Private slot to handle the coverageMarkersShown signal.

shown (bool)
  flag indicating whether the markers were shown or cleared

#### ViewManager.__cursorChanged

__cursorChanged(fn, line, pos, editor)

Private slot to handle the cursorChanged signal.

It emits the signal cursorChanged with parameter editor.

fn (str)
  filename
line (int)
  line number of the cursor
pos (int)
  position in line of the cursor
editor (Editor)
  reference to the editor

#### ViewManager.__disViewer

__disViewer(checked)

Private slot to handle a change of the DIS Viewer selection state.

checked (bool)
  state of the action

#### ViewManager.__editAutoComplete

__editAutoComplete()

Private method to handle the autocomplete action.

#### ViewManager.__editAutoCompleteFromAPIs

__editAutoCompleteFromAPIs()

Private method to handle the autocomplete from APIs action.

#### ViewManager.__editAutoCompleteFromAll

__editAutoCompleteFromAll()

Private method to handle the autocomplete from All action.

#### ViewManager.__editAutoCompleteFromDoc

__editAutoCompleteFromDoc()

Private method to handle the autocomplete from document action.

#### ViewManager.__editBookmarked

__editBookmarked()

Private method to edit the list of bookmarked files.

#### ViewManager.__editBoxComment

__editBoxComment()

Private method to handle the box comment action.

#### ViewManager.__editComment

__editComment()

Private method to handle the comment action.

#### ViewManager.__editCopy

__editCopy()

Private method to handle the copy action.

#### ViewManager.__editCut

__editCut()

Private method to handle the cut action.

#### ViewManager.__editDelete

__editDelete()

Private method to handle the delete action.

#### ViewManager.__editDeselectAll

__editDeselectAll()

Private method to handle the select all action.

#### ViewManager.__editIndent

__editIndent()

Private method to handle the indent action.

#### ViewManager.__editInsertDocstring

__editInsertDocstring()

Private method to insert a docstring.

#### ViewManager.__editJoin

__editJoin()

Private method to handle the join action.

#### ViewManager.__editPaste

__editPaste()

Private method to handle the paste action.

#### ViewManager.__editProjectPEL

__editProjectPEL()

Private slot to edit the project exception list.

#### ViewManager.__editProjectPWL

__editProjectPWL()

Private slot to edit the project word list.

#### ViewManager.__editRedo

__editRedo()

Private method to handle the redo action.

#### ViewManager.__editRevert

__editRevert()

Private method to handle the revert action.

#### ViewManager.__editSelectAll

__editSelectAll()

Private method to handle the select all action.

#### ViewManager.__editSelectBrace

__editSelectBrace()

Private method to handle the select to brace action.

#### ViewManager.__editShowCallTips

__editShowCallTips()

Private method to handle the calltips action.

#### ViewManager.__editShowCodeInfo

__editShowCodeInfo()

Private method to handle the code info action.

#### ViewManager.__editSmartIndent

__editSmartIndent()

Private method to handle the smart indent action.

#### ViewManager.__editSortSelectedLines

__editSortSelectedLines()

Private slot to sort the selected lines.

#### ViewManager.__editSpellingDictionary

__editSpellingDictionary(dictionaryFile)

Private slot to edit the given spelling dictionary.

dictionaryFile (str)
  file name of the dictionary to edit

#### ViewManager.__editStreamComment

__editStreamComment()

Private method to handle the stream comment action.

#### ViewManager.__editToggleComment

__editToggleComment()

Private method to handle the toggle comment action.

#### ViewManager.__editUncomment

__editUncomment()

Private method to handle the uncomment action.

#### ViewManager.__editUndo

__editUndo()

Private method to handle the undo action.

#### ViewManager.__editUnindent

__editUnindent()

Private method to handle the unindent action.

#### ViewManager.__editUserPEL

__editUserPEL()

Private slot to edit the user exception list.

#### ViewManager.__editUserPWL

__editUserPWL()

Private slot to edit the user word list.

#### ViewManager.__editorAutoCompletionAPIsAvailable

__editorAutoCompletionAPIsAvailable(available, editor)

Private method to handle the availability of API autocompletion signal.

available (bool)
  flag indicating the availability of API autocompletion
editor (Editor)
  reference to the editor

#### ViewManager.__editorCommand

__editorCommand(cmd)

Private method to send an editor command to the active window.

cmd (int)
  the scintilla command to be sent

#### ViewManager.__editorConfigChanged

__editorConfigChanged(editor)

Private slot to handle changes of an editor's configuration.

editor (Editor)
  reference to the editor

#### ViewManager.__editorDoubleClicked

__editorDoubleClicked(editor, pos, buttons)

Private slot handling mouse double clicks of an editor.

Note: This method is simply a multiplexer to re-emit the signal with the editor prepended.

editor (Editor)
  reference to the editor, that emitted the signal
pos (QPoint)
  position of the double click
buttons (Qt.MouseButton)
  mouse buttons that were double clicked

#### ViewManager.__editorOpened

__editorOpened()

Private slot to handle the editorOpened signal.

#### ViewManager.__editorRenamed

__editorRenamed(fn, editor)

Private slot to handle the editorRenamed signal.

It simply re-emits the signal.

fn (str)
  filename of the renamed editor
editor (Editor)
  reference to the editor

#### ViewManager.__editorSaved

__editorSaved(fn, editor)

Private slot to handle the editorSaved signal.

It simply re-emits the signal.

fn (str)
  filename of the saved editor
editor (Editor)
  reference to the editor

#### ViewManager.__editorSelectionChanged

__editorSelectionChanged(editor)

Private slot to handle changes of the current editors selection.

editor (Editor)
  reference to the editor

#### ViewManager.__enableSpellingActions

__enableSpellingActions()

Private method to set the enabled state of the spelling actions.

#### ViewManager.__eolPixmap

__eolPixmap(eolIndicator)

Private method to get an EOL pixmap for an EOL string.

eolIndicator (str)
  eol indicator string

Return:
  pixmap for the eol indicator

Return Type:
  QPixmap

#### ViewManager.__exportMenuTriggered

__exportMenuTriggered(act)

Private method to handle the selection of an export format.

act (QAction)
  reference to the action that was triggered

#### ViewManager.__findLocation

__findLocation()

Private method to handle the Find File action.

#### ViewManager.__findNextWord

__findNextWord()

Private slot to find the next occurrence of the current word of the current editor.

#### ViewManager.__findPrevWord

__findPrevWord()

Private slot to find the previous occurrence of the current word of the current editor.

#### ViewManager.__goto

__goto()

Private method to handle the goto action.

#### ViewManager.__gotoBrace

__gotoBrace()

Private method to handle the goto brace action.

#### ViewManager.__gotoLastEditPosition

__gotoLastEditPosition()

Private method to move the cursor to the last edit position.

#### ViewManager.__gotoNextMethodClass

__gotoNextMethodClass()

Private slot to go to the next Python/Ruby method or class definition.

#### ViewManager.__gotoPreviousMethodClass

__gotoPreviousMethodClass()

Private slot to go to the previous Python/Ruby method or class definition.

#### ViewManager.__gotoSyntaxError

__gotoSyntaxError()

Private method to handle the goto syntax error action.

#### ViewManager.__historyMenuTriggered

__historyMenuTriggered(act)

Private slot handling the selection of an action of the 'back' menu.

act (QAction)
  reference to the triggered action

#### ViewManager.__initBookmarkActions

__initBookmarkActions()

Private method defining the user interface actions for the bookmarks commands.

#### ViewManager.__initContextMenuExporters

__initContextMenuExporters()

Private method used to setup the Exporters sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### ViewManager.__initEditActions

__initEditActions()

Private method defining the user interface actions for the edit commands.

#### ViewManager.__initFileActions

__initFileActions()

Private method defining the user interface actions for file handling.

#### ViewManager.__initMacroActions

__initMacroActions()

Private method defining the user interface actions for the macro commands.

#### ViewManager.__initSearchActions

__initSearchActions()

Private method defining the user interface actions for the search commands.

#### ViewManager.__initSpellingActions

__initSpellingActions()

Private method to initialize the spell checking actions.

#### ViewManager.__initViewActions

__initViewActions()

Private method defining the user interface actions for the view commands.

#### ViewManager.__isEditorInfoSupportedEd

__isEditorInfoSupportedEd(editor)

Private method to check, if an editor is supported by the documentation viewer.

editor (Editor)
  reference to the editor to check for

Return:
  flag indicating the support status

Return Type:
  bool

#### ViewManager.__lastEditPositionAvailable

__lastEditPositionAvailable()

Private slot to handle the lastEditPositionAvailable signal of an editor.

#### ViewManager.__lastEditorClosed

__lastEditorClosed()

Private slot to handle the lastEditorClosed signal.

#### ViewManager.__loadRecent

__loadRecent()

Private method to load the recently opened filenames.

#### ViewManager.__macroDelete

__macroDelete()

Private method to handle the delete macro action.

#### ViewManager.__macroLoad

__macroLoad()

Private method to handle the load macro action.

#### ViewManager.__macroRun

__macroRun()

Private method to handle the run macro action.

#### ViewManager.__macroSave

__macroSave()

Private method to handle the save macro action.

#### ViewManager.__macroStartRecording

__macroStartRecording()

Private method to handle the start macro recording action.

#### ViewManager.__macroStopRecording

__macroStopRecording()

Private method to handle the stop macro recording action.

#### ViewManager.__newDocumentSplitView

__newDocumentSplitView()

Private method to open a new view of the current editor in a new split.

#### ViewManager.__newDocumentView

__newDocumentView()

Private method to open a new view of the current editor.

#### ViewManager.__newLineBelow

__newLineBelow()

Private method to insert a new line below the current one even if cursor is not at the end of the line.

#### ViewManager.__nextBookmark

__nextBookmark()

Private method to handle the next bookmark action.

#### ViewManager.__nextChange

__nextChange()

Private method to handle the next change action.

#### ViewManager.__nextTask

__nextTask()

Private method to handle the next task action.

#### ViewManager.__nextUncovered

__nextUncovered()

Private method to handle the next uncovered action.

#### ViewManager.__nextWarning

__nextWarning()

Private method to handle the next warning action.

#### ViewManager.__openFiles

__openFiles()

Private slot to open some files.

#### ViewManager.__openRemoteFiles

__openRemoteFiles()

Private slot to open some files.

#### ViewManager.__openSourceFile

__openSourceFile(act)

Private method to open a file from the list of recently opened files.

act (QAction)
  reference to the action that triggered

#### ViewManager.__previewEditor

__previewEditor(checked)

Private slot to handle a change of the preview selection state.

checked (bool)
  state of the action

#### ViewManager.__previousBookmark

__previousBookmark()

Private method to handle the previous bookmark action.

#### ViewManager.__previousChange

__previousChange()

Private method to handle the previous change action.

#### ViewManager.__previousTask

__previousTask()

Private method to handle the previous task action.

#### ViewManager.__previousUncovered

__previousUncovered()

Private method to handle the previous uncovered action.

#### ViewManager.__previousWarning

__previousWarning()

Private method to handle the previous warning action.

#### ViewManager.__reloadCurrentEditor

__reloadCurrentEditor()

Private slot to reload the contents of the current editor.

#### ViewManager.__replaceFiles

__replaceFiles()

Private method to handle the replace in files action.

#### ViewManager.__replaceOpenFiles

__replaceOpenFiles()

Private method to handle the replace in open files action.

#### ViewManager.__saveRecent

__saveRecent()

Private method to save the list of recently opened filenames.

#### ViewManager.__searchClearMarkers

__searchClearMarkers()

Private method to clear the search markers of the active window.

#### ViewManager.__searchFiles

__searchFiles()

Private method to handle the search in files action.

#### ViewManager.__searchNext

__searchNext()

Private slot to handle the search next action.

#### ViewManager.__searchOpenFiles

__searchOpenFiles()

Private method to handle the search in open files action.

#### ViewManager.__searchPrev

__searchPrev()

Private slot to handle the search previous action.

#### ViewManager.__setAutoSpellChecking

__setAutoSpellChecking()

Private slot to set the automatic spell checking of all editors.

#### ViewManager.__setSbFile

__setSbFile(fn=None, line=None, pos=None, encoding=None, language=None, eol=None, zoom=None, )

Private method to set the file info in the status bar.

fn (str)
  filename to display
line (int)
  line number to display
pos (int)
  character position to display
encoding (str)
  encoding name to display
language (str)
  language to display
eol (str)
  eol indicator to display
zoom (int)
  zoom value

#### ViewManager.__shortenEmptyLines

__shortenEmptyLines()

Private method to handle the shorten empty lines action.

#### ViewManager.__showBookmarkMenu

__showBookmarkMenu()

Private method to set up the bookmark menu.

#### ViewManager.__showBookmarkedMenu

__showBookmarkedMenu()

Private method to set up bookmarked files menu.

#### ViewManager.__showBookmarksMenu

__showBookmarksMenu()

Private method to handle the show bookmarks menu signal.

#### ViewManager.__showEditSpellingMenu

__showEditSpellingMenu()

Private method to set up the edit dictionaries menu.

#### ViewManager.__showEncodingsMenu

__showEncodingsMenu(pos)

Private slot to show the Encodings menu of the current editor.

pos (QPoint)
  position the menu should be shown at

#### ViewManager.__showEolMenu

__showEolMenu(pos)

Private slot to show the EOL menu of the current editor.

pos (QPoint)
  position the menu should be shown at

#### ViewManager.__showFileMenu

__showFileMenu()

Private method to set up the file menu.

#### ViewManager.__showLanguagesMenu

__showLanguagesMenu(pos)

Private slot to show the Languages menu of the current editor.

pos (QPoint)
  position the menu should be shown at

#### ViewManager.__showRecentMenu

__showRecentMenu()

Private method to set up recent files menu.

#### ViewManager.__spellCheck

__spellCheck()

Private slot to perform a spell check of the current editor.

#### ViewManager.__splitOrientation

__splitOrientation(checked)

Private method to handle the split orientation action.

checked (bool)
  flag indicating the checked state of the action. True means splitting horizontally.

#### ViewManager.__splitView

__splitView()

Private method to handle the split view action.

#### ViewManager.__taskMarkersUpdated

__taskMarkersUpdated(editor)

Private slot to handle the taskMarkersUpdated signal.

editor (Editor)
  editor that sent the signal

#### ViewManager.__toggleAll

__toggleAll()

Private method to handle the toggle all folds action.

#### ViewManager.__toggleAllChildren

__toggleAllChildren()

Private method to handle the toggle all folds (including children) action.

#### ViewManager.__toggleBookmark

__toggleBookmark()

Private method to handle the toggle bookmark action.

#### ViewManager.__toggleCurrent

__toggleCurrent()

Private method to handle the toggle current fold action.

#### ViewManager.__unhighlight

__unhighlight()

Private slot to switch of all highlights.

#### ViewManager.__watchedFileChanged

__watchedFileChanged(filePath)

Private slot handling modification, renaming or deletion of a watched file.

filePath (str)
  path of the file

#### ViewManager.__watcherError

__watcherError(errno, strerror)

Private slot to handle an error of the file system watcher.

errno (int)
  numeric error code
strerror (str)
  error message as provided by the operating system

#### ViewManager.__zoom

__zoom()

Private method to handle the zoom action.

#### ViewManager.__zoomIn

__zoomIn()

Private method to handle the zoom in action.

#### ViewManager.__zoomOut

__zoomOut()

Private method to handle the zoom out action.

#### ViewManager.__zoomReset

__zoomReset()

Private method to reset the zoom factor.

#### ViewManager.__zoomTo

__zoomTo(value)

Private slot to zoom to a given value.

value (int)
  zoom value to be set

#### ViewManager._addView

_addView(win, fn=None, noName="", addNext=False, indexes=None)

Protected method to add a view (i.e. window).

win (EditorAssembly)
  editor assembly to be added
fn (str)
  filename of this editor
noName (str)
  name to be used for an unnamed editor
addNext (bool)
  flag indicating to add the view next to the current view
indexes (tuple of two int)
  of the editor, first the split view index, second the index within the view

Raises NotImplementedError:
  Not implemented

#### ViewManager._checkActions

_checkActions(editor, setSb=True)

Protected slot to check some actions for their enable/disable status and set the statusbar info.

editor (Editor)
  editor window
setSb (bool)
  flag indicating an update of the status bar is wanted

#### ViewManager._getOpenFileFilter

_getOpenFileFilter()

Protected method to return the active filename filter for a file open dialog.

The appropriate filename filter is determined by file extension of the currently active editor.

Return:
  name of the filename filter

Return Type:
  str

#### ViewManager._getOpenStartDir

_getOpenStartDir(forRemote=False)

Protected method to return the starting directory for a file open dialog.

The appropriate starting directory is calculated using the following search order, until a match is found:
1: Directory of currently active editor
2: Directory of currently active Project
3: Directory defined as the workspace (only for local access)
4: CWD

forRemote (bool (optional))
  flag indicating to get the start directory for a remote operation (defaults to False)

Return:
  name of directory to start

Return Type:
  str

#### ViewManager._initWindowActions

_initWindowActions()

Protected method to define the user interface actions for window handling.

Raises NotImplementedError:
  Not implemented

#### ViewManager._modificationStatusChanged

_modificationStatusChanged(m, editor)

Protected slot to handle the modificationStatusChanged signal.

m (bool)
  flag indicating the modification status
editor (Editor)
  editor window changed

Raises NotImplementedError:
  Not implemented

#### ViewManager._removeAllViews

_removeAllViews()

Protected method to remove all views (i.e. windows).

Raises NotImplementedError:
  Not implemented

#### ViewManager._removeView

_removeView(win)

Protected method to remove a view (i.e. window).

win (EditorAssembly)
  editor window to be removed

Raises NotImplementedError:
  Not implemented

#### ViewManager._showView

_showView(win, fn=None)

Protected method to show a view (i.e. window).

win (EditorAssembly)
  editor assembly to be shown
fn (str)
  filename of this editor

Raises NotImplementedError:
  Not implemented

#### ViewManager._syntaxErrorToggled

_syntaxErrorToggled(editor)

Protected slot to handle the syntaxerrorToggled signal.

It checks some syntax error actions and reemits the signal.

editor (Editor)
  editor that sent the signal

#### ViewManager.activeWindow

activeWindow()

Public method to return the active (i.e. current) window.

Return:
  reference to the active editor

Return Type:
  Editor

Raises NotImplementedError:
  Not implemented

#### ViewManager.addSplit

addSplit()

Public method used to split the current view.

#### ViewManager.addToExtrasMenu

addToExtrasMenu(menu)

Public method to add some actions to the Extras menu.

menu (QMenu)
  reference to the menu to add actions to

#### ViewManager.addToRecentList

addToRecentList(fn)

Public slot to add a filename to the list of recently opened files.

fn (str)
  name of the file to be added

#### ViewManager.addWatchedFilePath

addWatchedFilePath(filePath)

Public method to add a file to the list of monitored files.

filePath (str)
  path of the file to be added

#### ViewManager.appFocusChanged

appFocusChanged(old, now)

Public method to handle the global change of focus.

old (QWidget)
  reference to the widget loosing focus
now (QWidget)
  reference to the widget gaining focus

#### ViewManager.canCascade

canCascade()

Public method to signal if cascading of managed windows is available.

Return:
  flag indicating cascading of windows is available

Return Type:
  bool

Raises NotImplementedError:
  Not implemented

#### ViewManager.canSplit

canSplit()

Public method to signal if splitting of the view is available.

Return:
  flag indicating splitting of the view is available

Return Type:
  bool

#### ViewManager.canTile

canTile()

Public method to signal if tiling of managed windows is available.

Return:
  flag indicating tiling of windows is available

Return Type:
  bool

Raises NotImplementedError:
  Not implemented

#### ViewManager.cascade

cascade()

Public method to cascade the managed windows.

Raises NotImplementedError:
  Not implemented

#### ViewManager.checkAllDirty

checkAllDirty()

Public method to check the dirty status of all editors.

Return:
  flag indicating successful reset of all dirty flags

Return Type:
  bool

#### ViewManager.checkDirty

checkDirty(editor, autosave=False, closeIt=False)

Public method to check the dirty status and open a message window.

editor (Editor)
  editor window to check
autosave (bool (optional))
  flag indicating that the file should be saved automatically (defaults to False)
closeIt (bool (optional))
  flag indicating a check in order to close the editor (defaults to False)

Return:
  flag indicating successful reset of the dirty flag

Return Type:
  bool

#### ViewManager.checkFileDirty

checkFileDirty(fn)

Public method to check the dirty status of an editor given its file name and open a message window.

fn (str)
  file name of editor to be checked

Return:
  flag indicating successful reset of the dirty flag

Return Type:
  bool

#### ViewManager.clearRecent

clearRecent()

Public method to clear the recent files menu.

#### ViewManager.cloneEditor

cloneEditor(caller, filetype, fn)

Public method to clone an editor displaying the given document.

caller (Editor)
  reference to the editor calling this method
filetype (str)
  type of the source file
fn (str)
  filename of this view

Return:
  reference to the new editor object and the new editor assembly object

Return Type:
  tuple of (Editor, EditorAssembly)

#### ViewManager.closeAllWindows

closeAllWindows(ignoreDirty=False)

Public method to close all editor windows.

ignoreDirty (bool)
  flag indicating to ignore the 'dirty' status

#### ViewManager.closeCurrentWindow

closeCurrentWindow()

Public method to close the current window.

Return:
  flag indicating success

Return Type:
  bool

#### ViewManager.closeDeviceEditors

closeDeviceEditors()

Public slot to close all editors related to a MicroPython device.

#### ViewManager.closeEditor

closeEditor(editor, ignoreDirty=False)

Public method to close an editor window.

editor (Editor)
  editor window to be closed
ignoreDirty (bool)
  flag indicating to ignore the 'dirty' status

Return:
  flag indicating success

Return Type:
  bool

#### ViewManager.closeEditorWindow

closeEditorWindow(editor)

Public method to close an arbitrary source editor.

editor (Editor)
  editor to be closed

#### ViewManager.closeRemoteEditors

closeRemoteEditors()

Public slot to close all editors related to a connected eric-ide server.

#### ViewManager.closeViewManager

closeViewManager()

Public method to shutdown the viewmanager.

If it cannot close all editor windows, it aborts the shutdown process.

Return:
  flag indicating success

Return Type:
  bool

#### ViewManager.closeWindow

closeWindow(fn, ignoreDirty=False)

Public method to close an arbitrary source editor.

fn (str)
  file name of the editor to be closed
ignoreDirty (bool)
  flag indicating to ignore the 'dirty' status

Return:
  flag indicating success

Return Type:
  bool

#### ViewManager.editorsCheckFocusInEnabled

editorsCheckFocusInEnabled()

Public method returning the flag indicating editors should perform focus in checks.

Return:
  flag indicating focus in checks should be performed

Return Type:
  bool

#### ViewManager.enableEditorsCheckFocusIn

enableEditorsCheckFocusIn(enabled)

Public method to set a flag enabling the editors to perform focus in checks.

enabled (bool)
  flag indicating focus in checks should be performed

#### ViewManager.eventFilter

eventFilter(qobject, event)

Public method called to filter an event.

qobject (QObject)
  object, that generated the event
event (QEvent)
  the event, that was generated by object

Return:
  flag indicating if event was filtered out

Return Type:
  bool

#### ViewManager.exit

exit()

Public method to handle the debugged program terminating.

#### ViewManager.getAPIsManager

getAPIsManager()

Public method to get a reference to the APIs manager.

Return:
  the APIs manager object

Return Type:
  QScintilla.APIsManager

#### ViewManager.getActions

getActions(actionSetType)

Public method to get a list of all actions.

actionSetType (str)
  string denoting the action set to get. It must be one of "edit", "file", "search", "view", "window", "macro", "bookmark" or "spelling".

Return:
  list of all actions

Return Type:
  list of EricAction

#### ViewManager.getActiveName

getActiveName()

Public method to retrieve the filename of the active window.

Return:
  filename of active window

Return Type:
  str

#### ViewManager.getEditor

getEditor(fn, filetype="", addNext=False, indexes=None)

Public method to return the editor displaying the given file.

If there is no editor with the given file, a new editor window is created.

fn (str)
  filename to look for
filetype (str)
  type of the source file
addNext (bool)
  flag indicating that if a new editor needs to be created, it should be added next to the current editor
indexes (tuple of two int)
  tuple containing the indexes of the editor, first the split view index, second the index within the view

Return:
  tuple of two values giving a flag indicating a new window creation and a reference to the editor displaying this file

Return Type:
  tuple of (bool, Editor)

#### ViewManager.getMostRecent

getMostRecent()

Public method to get the most recently opened file.

Return:
  path of the most recently opened file

Return Type:
  str

#### ViewManager.getNumber

getNumber()

Public method to get a number from the active window.

Return:
  selected text of the active window

Return Type:
  str

#### ViewManager.getOpenEditor

getOpenEditor(fn)

Public method to return the editor displaying the given file.

fn (str)
  filename to look for

Return:
  a reference to the editor displaying this file or None, if no editor was found

Return Type:
  Editor or None

#### ViewManager.getOpenEditorCount

getOpenEditorCount(fn)

Public method to return the count of editors displaying the given file.

fn (str)
  filename to look for

Return:
  count of editors displaying this file

Return Type:
  int

#### ViewManager.getOpenEditorList

getOpenEditorList(fn)

Public method to return a list of all editors displaying the given file.

fn (str)
  filename to look for

Return:
  list of references to the editors displaying this file

Return Type:
  list of Editor

#### ViewManager.getOpenEditors

getOpenEditors()

Public method to get references to all open editors.

Return:
  list of references to all open editors

Return Type:
  list of Editor

#### ViewManager.getOpenEditorsCount

getOpenEditorsCount()

Public method to get the number of open editors.

Return:
  number of open editors

Return Type:
  int

#### ViewManager.getOpenEditorsForSession

getOpenEditorsForSession()

Public method to get a lists of all open editors.

The returned list contains one list per split view. If the view manager cannot split the view, only one list of editors is returned.

Note: This method should be implemented by subclasses.

Return:
  list of list of editor references

Return Type:
  list of list of Editor

#### ViewManager.getOpenFilenames

getOpenFilenames()

Public method returning a list of the filenames of all editors.

Return:
  list of all opened filenames

Return Type:
  list of str

#### ViewManager.getSRHistory

getSRHistory(key)

Public method to get the search or replace history list.

key (str)
  list to return (must be 'search' or 'replace')

Return:
  the requested history list

Return Type:
  list of str

#### ViewManager.getSplitOrientation

getSplitOrientation()

Public method to get the orientation of the split view.

Return:
  orientation of the split

Return Type:
  Qt.Orientation

#### ViewManager.handleResetUI

handleResetUI()

Public slot to handle the resetUI signal.

#### ViewManager.hasDirtyEditor

hasDirtyEditor()

Public method to ask, if any of the open editors contains unsaved changes.

Return:
  flag indicating at least one editor has unsaved changes

Return Type:
  bool

#### ViewManager.initActions

initActions()

Public method defining the user interface actions.

#### ViewManager.initBookmarkMenu

initBookmarkMenu()

Public method to create the Bookmark menu.

Return:
  the generated menu

Return Type:
  QMenu

#### ViewManager.initBookmarkToolbar

initBookmarkToolbar(toolbarManager)

Public method to create the Bookmark toolbar.

toolbarManager (EricToolBarManager)
  reference to a toolbar manager object

Return:
  the generated toolbar

Return Type:
  QToolBar

#### ViewManager.initEditMenu

initEditMenu()

Public method to create the Edit menu.

Return:
  the generated menu

Return Type:
  QMenu

#### ViewManager.initEditToolbar

initEditToolbar(toolbarManager)

Public method to create the Edit toolbar.

toolbarManager (EricToolBarManager)
  reference to a toolbar manager object

Return:
  the generated toolbar

Return Type:
  QToolBar

#### ViewManager.initFileMenu

initFileMenu()

Public method to create the File menu.

Return:
  the generated menu

Return Type:
  QMenu

#### ViewManager.initFileToolbar

initFileToolbar(toolbarManager)

Public method to create the File toolbar.

toolbarManager (EricToolBarManager)
  reference to a toolbar manager object

Return:
  the generated toolbar

Return Type:
  QToolBar

#### ViewManager.initMacroMenu

initMacroMenu()

Public method to create the Macro menu.

Return:
  the generated menu

Return Type:
  QMenu

#### ViewManager.initSearchMenu

initSearchMenu()

Public method to create the Search menu.

Return:
  the generated menu

Return Type:
  QMenu

#### ViewManager.initSearchToolbar

initSearchToolbar(toolbarManager)

Public method to create the Search toolbar.

toolbarManager (EricToolBarManager)
  reference to a toolbar manager object

Return:
  generated toolbar

Return Type:
  QToolBar

#### ViewManager.initSpellingToolbar

initSpellingToolbar(toolbarManager)

Public method to create the Spelling toolbar.

toolbarManager (EricToolBarManager)
  reference to a toolbar manager object

Return:
  the generated toolbar

Return Type:
  QToolBar

#### ViewManager.initViewMenu

initViewMenu()

Public method to create the View menu.

Return:
  the generated menu

Return Type:
  QMenu

#### ViewManager.initViewToolbar

initViewToolbar(toolbarManager)

Public method to create the View toolbar.

toolbarManager (EricToolBarManager)
  reference to a toolbar manager object

Return:
  the generated toolbar

Return Type:
  QToolBar

#### ViewManager.insertNumber

insertNumber(txt)

Public slot to insert a number text into the active window.

txt (str)
  text to be inserted

#### ViewManager.insertSymbol

insertSymbol(txt)

Public slot to insert a symbol text into the active window.

txt (str)
  text to be inserted

#### ViewManager.isEditorInfoSupported

isEditorInfoSupported(language)

Public method to check, if a language is supported by the documentation viewer.

language (str)
  editor programming language to check

Return:
  flag indicating the support status

Return Type:
  bool

#### ViewManager.mainWidget

mainWidget()

Public method to return a reference to the main Widget of a specific view manager subclass.

Raises NotImplementedError:
  Not implemented

#### ViewManager.mousePressEvent

mousePressEvent(evt)

Protected method called by a mouse press event.

evt (QMouseEvent)
  reference to the mouse event

#### ViewManager.newEditor

newEditor()

Public method to generate a new empty editor.

Return:
  reference to the new editor

Return Type:
  Editor

#### ViewManager.newEditorView

newEditorView(fn, caller, filetype="", indexes=None)

Public method to create a new editor displaying the given document.

fn (str)
  filename of this view
caller (Editor)
  reference to the editor calling this method
filetype (str)
  type of the source file
indexes (tuple of two int)
  of the editor, first the split view index, second the index within the view

Return:
  reference to the new editor object

Return Type:
  Editor

#### ViewManager.newEditorWithText

newEditorWithText(text, language="", fileName="")

Public method to generate a new editor with a given text and associated file name.

text (str)
  text for the editor
language (str (optional))
  source language (defaults to "")
fileName (str (optional))
  associated file name (defaults to "")

#### ViewManager.nextSplit

nextSplit()

Public slot used to move to the next split.

#### ViewManager.openFiles

openFiles(prog)

Public slot to open some files.

prog (str)
  name of file to be opened

#### ViewManager.openSourceFile

openSourceFile(fn, lineno=-1, filetype="", selStart=0, selEnd=0, pos=0, addNext=False, indexes=None, )

Public method to display a file in an editor.

fn (str)
  name of file to be opened
lineno (int or list of int)
  line number to place the cursor at or list of line numbers (cursor will be placed at the next line greater than the current one)
filetype (str)
  type of the source file
selStart (int)
  start of an area to be selected
selEnd (int)
  end of an area to be selected
pos (int)
  position within the line to place the cursor at
addNext (bool)
  flag indicating to add the file next to the current editor
indexes (tuple of two int)
  indexes of the editor, first the split view index, second the index within the view

Return:
  reference to the opened editor

Return Type:
  Editor

#### ViewManager.openSourceFileLinePos

openSourceFileLinePos(fn, lineno, pos)

Public slot to display a file in an editor at a given line and position.

fn (str)
  name of file to be opened
lineno (int)
  line number to place the cursor at
pos (int)
  position within line to position cursor at

#### ViewManager.preferencesChanged

preferencesChanged()

Public slot to handle the preferencesChanged signal.

This method performs the following actions

- reread the colours for the syntax highlighting
- reloads the already created API objetcs
- Note: changes in viewmanager type are activated on an application restart.

#### ViewManager.prevSplit

prevSplit()

Public slot used to move to the previous split.

#### ViewManager.printCurrentEditor

printCurrentEditor()

Public slot to print the contents of the current editor.

#### ViewManager.printEditor

printEditor(editor)

Public slot to print an editor.

editor (Editor)
  editor to be printed

#### ViewManager.printPreviewCurrentEditor

printPreviewCurrentEditor()

Public slot to show a print preview of the current editor.

#### ViewManager.printPreviewEditor

printPreviewEditor(editor)

Public slot to show a print preview of an editor.

editor (Editor)
  editor to be printed

#### ViewManager.projectClosed

projectClosed()

Public slot to handle the projectClosed signal.

#### ViewManager.projectFileRenamed

projectFileRenamed(oldfn, newfn)

Public slot to handle the projectFileRenamed signal.

oldfn (str)
  old filename of the file
newfn (str)
  new filename of the file

#### ViewManager.projectLexerAssociationsChanged

projectLexerAssociationsChanged()

Public slot to handle changes of the project lexer associations.

#### ViewManager.projectOpened

projectOpened()

Public slot to handle the projectOpened signal.

#### ViewManager.remoteConnectionChanged

remoteConnectionChanged(connected)

Public slot handling a change of the connection state to an eric-ide server.

connected (bool)
  flag indicating the connection state

#### ViewManager.removeSplit

removeSplit(index=-1)

Public method used to remove the current split view or a split view by index.

index (int)
  index of the split to be removed (-1 means to delete the current split)

Return:
  flag indicating successful deletion

Return Type:
  bool

#### ViewManager.removeWatchedFilePath

removeWatchedFilePath(filePath)

Public method to remove a file from the list of monitored files.

filePath (str)
  path of the file to be removed

#### ViewManager.saveAllEditors

saveAllEditors()

Public slot to save the contents of all editors.

#### ViewManager.saveAsCurrentEditor

saveAsCurrentEditor()

Public slot to save the contents of the current editor to a new file.

#### ViewManager.saveAsEditorEd

saveAsEditorEd(ed)

Public slot to save the contents of an editor to a new file.

ed (Editor)
  editor to be saved

#### ViewManager.saveAsRemoteCurrentEditor

saveAsRemoteCurrentEditor()

Public slot to save the contents of the current editor to a new file on a connected eric-ide server.

#### ViewManager.saveAsRemoteEditorEd

saveAsRemoteEditorEd(ed)

Public slot to save the contents of an editor to a new file on a connected eric-ide server.

ed (Editor)
  editor to be saved

#### ViewManager.saveCopyCurrentEditor

saveCopyCurrentEditor()

Public slot to save the contents of the current editor to a new copy of the file.

#### ViewManager.saveCopyEditorEd

saveCopyEditorEd(ed)

Public slot to save the contents of an editor to a new copy of the file.

ed (Editor)
  editor to be saved

#### ViewManager.saveCurrentEditor

saveCurrentEditor()

Public slot to save the contents of the current editor.

#### ViewManager.saveEditor

saveEditor(fn)

Public method to save a named editor file.

fn (str)
  filename of editor to be saved

Return:
  flag indicating success

Return Type:
  bool

#### ViewManager.saveEditorEd

saveEditorEd(ed)

Public slot to save the contents of an editor.

ed (Editor)
  editor to be saved

Return:
  flag indicating success

Return Type:
  bool

#### ViewManager.saveEditorsList

saveEditorsList(editors)

Public slot to save a list of editors.

editors (list of Editor)
  list of editors to be saved

#### ViewManager.searchReplaceWidget

searchReplaceWidget()

Public method to get a reference to the search widget.

Return:
  reference to the search widget

Return Type:
  SearchReplaceSlidingWidget

#### ViewManager.setEditorName

setEditorName(editor, newName)

Public method to change the displayed name of the editor.

editor (Editor)
  editor window to be changed
newName (str)
  new name to be shown

Raises NotImplementedError:
  Not implemented

#### ViewManager.setFileLine

setFileLine(fn, line, error=False)

Public method to update the user interface when the current program or line changes.

fn (str)
  filename of editor to update
line (int)
  line number to highlight
error (bool)
  flag indicating an error highlight

#### ViewManager.setReferences

setReferences(ui, dbs, remoteServerInterface)

Public method to set some references needed later on.

ui (UserInterface)
  reference to the main user interface
dbs (DebugServer)
  reference to the debug server object
remoteServerInterface (EricServerInterface)
  reference to the 'eric-ide' server interface

#### ViewManager.setSbInfo

setSbInfo(sbLine, sbPos, sbWritable, sbEncoding, sbLanguage, sbEol, sbZoom)

Public method to transfer statusbar info from the user interface to viewmanager.

sbLine (QLabel)
  reference to the line number part of the statusbar
sbPos (QLabel)
  reference to the character position part of the statusbar
sbWritable (QLabel)
  reference to the writability indicator part of the statusbar
sbEncoding (QLabel)
  reference to the encoding indicator part of the statusbar
sbLanguage (QLabel)
  reference to the language indicator part of the statusbar
sbEol (QLabel)
  reference to the eol indicator part of the statusbar
sbZoom (EricZoomWidget)
  reference to the zoom widget

#### ViewManager.setSplitCount

setSplitCount(count)

Public method to set the number of split views.

count (int)
  number of split views

#### ViewManager.setSplitOrientation

setSplitOrientation(orientation)

Public method used to set the orientation of the split view.

orientation (Qt.Orientation)
  orientation of the split

#### ViewManager.showDebugSource

showDebugSource(fn, line)

Public method to open the given file and highlight the given line in it.

fn (str)
  filename of editor to update
line (int)
  line number to highlight

#### ViewManager.showEditorInfo

showEditorInfo(editor)

Public method to show some information for a given editor.

editor (Editor)
  editor to show information text for

#### ViewManager.showReplaceWidget

showReplaceWidget()

Public method to show the replace widget.

#### ViewManager.showSearchWidget

showSearchWidget()

Public method to show the search widget.

#### ViewManager.showWindowMenu

showWindowMenu(windowMenu)

Public method to set up the viewmanager part of the Window menu.

windowMenu (QMenu)
  reference to the window menu

Raises NotImplementedError:
  Not implemented

#### ViewManager.splitCount

splitCount()

Public method to get the number of split views.

Return:
  number of split views

Return Type:
  int

#### ViewManager.textForFind

textForFind(getCurrentWord=True)

Public method to determine the selection or the current word for the next find operation.

getCurrentWord (bool)
  flag indicating to return the current word, if no selected text was found

Return:
  selection or current word

Return Type:
  str

#### ViewManager.tile

tile()

Public method to tile the managed windows.

Raises NotImplementedError:
  Not implemented

#### ViewManager.unhighlight

unhighlight(current=False)

Public method to switch off all highlights or the highlight of the current editor.

current (bool)
  flag indicating only the current editor should be unhighlighted

#### ViewManager.zoomValueChanged

zoomValueChanged(value, zoomingWidget)

Public slot to handle changes of the zoom value.

value (int)
  new zoom value
zoomingWidget (Editor or Shell)
  reference to the widget triggering the slot

Up